﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RenAi.Medical.BLL;
using RenAi.Medical.Model;

namespace RenAi.Medical.Admin
{
    public partial class AddHospitalBasic : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        
        }

        protected void btnAdd_Click(object sender, EventArgs e)
        {
            HospitalBasic model = new HospitalBasic();
            model.HB_Name = this.txtname.Text;
            model.HB_Time = this.txtTime.Text;
            model.HB_Phone =this.txtphone.Text;
            model.HB_URL = this.txtUrl.Text;
            model.HB_intro = this.txtIntro.Text;

            HospitalBasicBLL bll = new HospitalBasicBLL();
            if (bll.AddHosp(model) > 0)
            {
                Response.Write("<script>alert('添加成功！');</script>");
                Response.Redirect("videoQuery.aspx");
            }
        }
    }
}